<div class="modal-header" id="scope">
	<h3 class="modal-title" ng-if="param.type == 'insert'">新增</h3>
	<h3 class="modal-title" ng-if="param.type == 'update'">修改</h3>
</div>
<div class="modal-body">
	<form name="myForm" class="form-horizontal form-validation">
		<div class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>主题：</label>
					<div class="col-sm-7">
						<input type="text" class="form-control" placeholder="主题"
							ng-model="param.data.subject" required />
					</div>
				</div>
 			<div class="form-group" ng-controller="DatepickerDemoCtrl">
				<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>开始日期：</label>
				<div class="col-sm-7">
				<div class="input-group">
					<input type="text" class="form-control" ng-init="selected_format=formats[5]"
						datepicker-popup="{{selected_format}}" is-open="opened"
						ng-model="timeRange.startTime"  datepicker-options="dateOptions"
						close-text="Close" placeholder="开始日期" readOnly/>
						<span class="input-group-btn">
						<button type="button" class="btn btn-default" ng-click="open($event)">
							<i class="glyphicon glyphicon-calendar"></i>
						</button>
					</span>
					</div>
				</div>
			</div>
<!-- 					<div class="form-group">
					<label class="col-sm-3 control-label">开始时间：</label>
					<div class="col-sm-7">
						<input type="text" class="form-control" placeholder="开始时间"
							ng-model="mystart"  ng-pattern="/^([0-1]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/"  required />
					</div>
				</div>
				<div class="form-group">
				    <label class="col-sm-3 control-label">开始时间格式规范：</label>
				    <p class="col-sm-7" style="margin-top: 5px">格式必须为：时:分:秒,分号在英文状态下输入。例：12:30:00</p>
				</div>	 -->
			<div class="form-group" ng-controller="DatepickerDemoCtrl">
				<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>结束日期：</label>
				<div class="col-sm-7">
				<div class="input-group">
					<input type="text" class="form-control" ng-init="selected_format=formats[5]"
						datepicker-popup="{{selected_format}}" is-open="opened"
						ng-model="timeRange.endTime"  datepicker-options="dateOptions"
						close-text="Close" placeholder="结束日期" readOnly/>
						<span class="input-group-btn">
						<button type="button" class="btn btn-default" ng-click="open($event)">
							<i class="glyphicon glyphicon-calendar"></i>
						</button>
					</span>
					</div>
				</div>
			</div>
<!-- 				<div class="form-group">
					<label class="col-sm-3 control-label">结束时间：</label>
					<div class="col-sm-7">
						<input type="text" class="form-control" placeholder="结束时间"
							ng-model="myend" ng-pattern="/^([0-1]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/"  required />
					</div>
				</div>
				<div class="form-group">
				    <label class="col-sm-3 control-label">结束时间格式规范：</label>
				    <p class="col-sm-7" style="margin-top: 5px">格式必须为：时:分:秒,分号在英文状态下输入。例：12:30:00</p>
				</div>		 -->
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>活动说明：</label>
					<div class="col-sm-7">
						<input type="text" class="form-control" placeholder="活动说明"
							ng-model="param.data.description" required />
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>状态：</label>
					<div class="col-sm-7">
						<ui-select ng-model="statuslist.selected" theme="bootstrap">
						<ui-select-match placeholder="状态">{{$select.selected.name}}</ui-select-match>
						<ui-select-choices
							repeat="status in statuslist | propsFilter:{name: $select.search}">
						<span ng-bind-html="status.name | highlight: $select.search"></span>
						</ui-select-choices> </ui-select>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>促销规则：</label>
					<div class="col-sm-7">
						<ui-select ng-model="rulelist.selected" theme="bootstrap">
						<ui-select-match placeholder="规则">{{$select.selected.name}}</ui-select-match>
						<ui-select-choices
							repeat="rule in rulelist | propsFilter:{name: $select.search}">
						<span ng-bind-html="rule.name | highlight: $select.search"></span>
						</ui-select-choices> </ui-select>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>所属模块：</label>
					<div class="col-sm-7">
						<ui-select ng-model="dplist.selected" theme="bootstrap">
						<ui-select-match placeholder="所属模块">{{$select.selected.name}}</ui-select-match>
						<ui-select-choices
							repeat="dplist in dplist | propsFilter:{name: $select.search}">
						<span ng-bind-html="dplist.name | highlight: $select.search"></span>
						</ui-select-choices> </ui-select>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>备注：</label>
					<div class="col-sm-7">
						<input type="text" class="form-control" placeholder="备注"
							ng-model="param.data.remark" required/>
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>宣传图片上传：</label>
					<div class="col-md-4" style="margin-left: 9px">
						<input type="file" class="form-control" placeholder="选择图片文件"
							ng-value="fileToUpload" value="{{fileToUpload}}"
							file-model="fileToUpload" set-file-data="fileToUpload = value;">
					</div>
				</div>
				<div class="form-group" ng-show="flag">
					<label class="col-md-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>当前使用图片预览：</label>
					<div class="col-md-4">
						<div class="bg-white wrapper-sm b-a">
							<div class="bg-light">
								<img ng-src="{{param.data.imageUrl}}" style="width: 100%;height: 100%"/>
							</div>
						</div>
					</div>
				</div>
			</div>

			<footer class="panel-footer text-right bg-light lter">
				<button class="btn btn-default" type="button" ng-click="cancel()">取消</button>
				<button type="submit" class="btn btn-success" ng-click="ok()">提交</button>
			</footer>
		</div>

	</form>
</div>